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.
- Loading branch information
Showing
9 changed files
with
866 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
from bpy.types import PropertyGroup | ||
from bpy.props import PointerProperty | ||
|
||
from .f3d_parser import * | ||
from .f3d_material import * | ||
from .f3d_render_engine import * | ||
from .f3d_gbi import * | ||
from .bsdf_converter import F3D_BSDFConverterProperties, bsdf_converter_register, bsdf_converter_unregister | ||
|
||
class F3D_Properties(PropertyGroup): | ||
""" | ||
Properties in scene.fast64.f3d. | ||
All new scene f3d properties should be children of this property group. | ||
""" | ||
|
||
bsdf_converter: PointerProperty(name="BSDF Converter", type=F3D_BSDFConverterProperties) | ||
|
||
classes = (F3D_Properties,) | ||
|
||
def f3d_register(register_panel = True): | ||
bsdf_converter_register() | ||
for cls in classes: | ||
register_class(cls) | ||
|
||
|
||
def f3d_unregister(register_panel = True): | ||
for cls in reversed(classes): | ||
unregister_class(cls) | ||
bsdf_converter_unregister() |
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,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() |
Oops, something went wrong.