diff options
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 15 | ||||
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
3 files changed, 10 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 139481c53a4..88845fa49e2 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -210,6 +210,14 @@ class RENDER_PT_freestyle(RenderButtonsPanel, Panel): col.label(text="Edge Detection Options:") col.prop(freestyle, "use_smoothness") col.prop(freestyle, "crease_angle") + if freestyle.mode == "SCRIPT": + col.prop(freestyle, "use_material_boundaries") + col.prop(freestyle, "use_ridges_and_valleys") + col.prop(freestyle, "use_suggestive_contours") + col.prop(freestyle, "use_advanced_options") + if freestyle.use_advanced_options: + col.prop(freestyle, "sphere_radius") + col.prop(freestyle, "kr_derivative_epsilon") if freestyle.mode == "EDITOR": @@ -235,13 +243,6 @@ class RENDER_PT_freestyle(RenderButtonsPanel, Panel): else: # freestyle.mode == "SCRIPT" - col.prop(freestyle, "use_material_boundaries") - col.prop(freestyle, "use_ridges_and_valleys") - col.prop(freestyle, "use_suggestive_contours") - col.prop(freestyle, "use_advanced_options") - if freestyle.use_advanced_options: - col.prop(freestyle, "sphere_radius") - col.prop(freestyle, "kr_derivative_epsilon") col.separator() col.operator("scene.freestyle_module_add") diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index c9a05019078..fe37b89999e 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -343,7 +343,7 @@ extern "C" { } // set parameters - if (config->mode == FREESTYLE_CONTROL_SCRIPT_MODE && (config->flags & FREESTYLE_ADVANCED_OPTIONS_FLAG)) { + if (config->flags & FREESTYLE_ADVANCED_OPTIONS_FLAG) { controller->setSphereRadius( config->sphere_radius ); controller->setSuggestiveContourKrDerivativeEpsilon( config->dkr_epsilon ); } else { diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 75baba7156a..e9b5debcc60 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2666,7 +2666,7 @@ static void rna_def_freestyle_settings(BlenderRNA *brna) prop= RNA_def_property(srna, "kr_derivative_epsilon", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "dkr_epsilon"); - RNA_def_property_range(prop, 0.0, 1000.0); + RNA_def_property_range(prop, -1000.0, 1000.0); RNA_def_property_ui_text(prop, "Kr Derivative Epsilon", "Kr derivative epsilon for computing suggestive contours"); RNA_def_property_update(prop, NC_SCENE, NULL); |