Skip to content

[F3D] Custom material presets cannot be created #733

Description

@thinedave
Version: 2.6.0
Game: OOT
Microcode: F3DEX2
Version: Legacy
Feature Set: Default

Attempting to create a custom F3D material preset results in the following error upon pressing the "OK" button:

bpy.ops.material.f3d_preset_add(name="test")

Python: Traceback (most recent call last):
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\5.1\scripts\addons\fast64-main\fast64_internal\f3d\f3d_material.py", line 4380, in execute
    value = eval(rna_path)
  File "<string>", line 1, in <module>
NameError: name 'f3d_mat' is not defined

Notes

Likely cause: f3d_mat is not defined in the generated file_preset file (would be after file_preset.write("import bpy\n"))

Reproducible Steps

  • Create a Fast3D Material
  • Select any preset
  • Select +
  • Name it anything
  • Press "OK"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions