diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2021-06-09 04:13:10 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2021-06-09 04:13:10 +0300 |
commit | f86f25e62217264495d05f116ccb09d575fe9841 (patch) | |
tree | ece4a4e5c56e07342352187b751c0dd21fb5ac53 /render_povray/shading_properties.py | |
parent | 3a409083e7dbc8e5fef5a68f6ac5be275acc5ca8 (diff) |
POV: Code formatting and bugfixes
* fix: more imports cleanup and formatting
* add: hair shape (from old MaterialStrand for now)
* add: pixel / Non Blender units strand width
* fix: an exception handling of df3_library
* fix: gas flow_type typo
Diffstat (limited to 'render_povray/shading_properties.py')
-rwxr-xr-x | render_povray/shading_properties.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/render_povray/shading_properties.py b/render_povray/shading_properties.py index 18895eba..3a3c944d 100755 --- a/render_povray/shading_properties.py +++ b/render_povray/shading_properties.py @@ -127,7 +127,7 @@ def brush_texture_update(self, context): class RenderPovSettingsMaterial(PropertyGroup): """Declare material level properties controllable in UI and translated to POV.""" - ######################Begin Old Blender Internal Props######################### + # --------------------------- Begin Old Blender Internal Props --------------------------- # # former Space properties from removed Blender Internal use_limited_texture_context: BoolProperty( name="", @@ -854,7 +854,7 @@ class RenderPovSettingsMaterial(PropertyGroup): default="1", ) - ##################################CustomPOV Code############################ + # ------------------------------ CustomPOV Code ------------------------------ # replacement_text: StringProperty( name="Declared name:", description="Type the variable name as declared either directly inlined " @@ -936,12 +936,9 @@ class RenderPovSettingsMaterial(PropertyGroup): return node def node_enum_callback(self, context): - items = [] mat = context.material nodes = mat.node_tree.nodes - for node in nodes: - items.append(("%s" % node.name, "%s" % node.name, "")) - return items + return [("%s" % node.name, "%s" % node.name, "") for node in nodes] def pigment_normal_callback(self, context): render = context.scene.pov.render # XXX comment out > remove? @@ -2252,7 +2249,7 @@ class MaterialStrandSettings(PropertyGroup): """ -#######################End Old Blender Internal Props########################## +# ------------------------------ End Old Blender Internal Props ------------------------------ # classes = ( |