forked from Fast-64/fast64
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
draw some ui and props and stuff, rename
- Loading branch information
Showing
8 changed files
with
106 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
from .operators import bsdf_converter_ops_register, bsdf_converter_ops_unregister | ||
from .ui import bsdf_converter_panel_draw | ||
from .properties import F3D_BSDFConverterProperties, bsdf_converter_props_register, bsdf_converter_props_unregister | ||
|
||
|
||
def bsdf_converter_register(): | ||
bsdf_converter_ops_register() | ||
bsdf_converter_props_register() | ||
|
||
|
||
def bsdf_converter_unregister(): | ||
bsdf_converter_ops_unregister() | ||
bsdf_converter_props_unregister() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from bpy.types import Object | ||
|
||
import dataclasses | ||
|
||
|
||
@dataclasses.dataclass | ||
class SimpleN64Texture: | ||
name: str | ||
|
||
|
||
@dataclasses.dataclass | ||
class SimpleN64Material: | ||
name: str | ||
|
||
|
||
def obj_to_f3d(obj: Object): | ||
print(f"Converting BSDF materials in {obj.name}") | ||
|
||
def obj_to_bsdf(obj: Object): | ||
print(f"Converting F3D materials in {obj.name}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from bpy.utils import register_class, unregister_class | ||
from bpy.types import PropertyGroup, UILayout | ||
from bpy.props import EnumProperty | ||
|
||
from ...utility import prop_split, multilineLabel | ||
|
||
|
||
class F3D_BSDFConverterProperties(PropertyGroup): | ||
""" | ||
Properties in scene.fast64.f3d.bsdf_converter | ||
""" | ||
|
||
converter_type: EnumProperty(items=[("Object", "Selected Objects", "Object"), ("Scene", "Scene", "Scene")]) | ||
|
||
def draw_props(self, layout: UILayout): | ||
col = layout.column() | ||
prop_split(col, self, "converter_type", "Converter Type") | ||
|
||
|
||
|
||
classes = (F3D_BSDFConverterProperties,) | ||
|
||
|
||
def bsdf_converter_props_register(): | ||
for cls in classes: | ||
register_class(cls) | ||
|
||
|
||
def bsdf_converter_props_unregister(): | ||
for cls in reversed(classes): | ||
unregister_class(cls) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters