diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-11-12 00:35:03 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-11-12 00:35:03 +0400 |
commit | e7a4d454350beb1ce20f3d7d2d091451a885eefe (patch) | |
tree | 4709f76bb57fadbd7dcf85204be2ff5cd0d5b13e /release/scripts/startup/bl_ui/properties_render.py | |
parent | 80e398e7b2cfbdf0192b11734cb02b378b423d65 (diff) |
Added to the Parameter Editor mode new stroke geometry modifier `Blueprint'
that produces a blueprint using circular, elliptic, and square contour strokes.
Related changes and bug fixes were made as follows:
* The randomness in radius and center has been transformed into optional
parameters of the pyBluePrintCirclesShader and pyBluePrintEllipsesShader.
Also a new optional parameter to control the randomness of backbone
stretching has been added to the pyBluePrintSquaresShader.
* A bug in the pyBluePrintSquaresShader that invisible stroke vertices at
corners of rectangular contour strokes were not properly drawn. The problem
was due to the changes of the / operator between Python 2.x to 3.x. Even
when the two operands of the division operator are integers, Python 3.x
gives a floating-point number when the quotient is not an integer. The fix
was just to replace the / operator by the // operator for integer division.
* An unpleasant discontinuity in circular and elliptical contour strokes
was fixed.
* The length parameter of the Backbone Stretcher geometry modifier has been
renamed to `backbone_length' in line with the parameter of the same name in
the pyBluePrintSquaresShader.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_render.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 71f207f6e5a..c6002a53023 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -550,6 +550,17 @@ class RENDER_PT_freestyle_linestyle(RenderButtonsPanel, Panel): elif modifier.type == "GUIDING_LINES": box.prop(modifier, "offset") + elif modifier.type == "BLUEPRINT": + row = box.row() + row.prop(modifier, "shape", expand=True) + box.prop(modifier, "rounds") + if modifier.shape in ["CIRCLES", "ELLIPSES"]: + box.prop(modifier, "random_radius") + box.prop(modifier, "random_center") + elif modifier.shape == "SQUARES": + box.prop(modifier, "backbone_length") + box.prop(modifier, "random_backbone") + def draw(self, context): layout = self.layout |