diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2017-06-19 04:48:50 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2017-06-19 04:48:50 +0300 |
commit | 1b69d1072370fbf76d943d4515c3cf4c26940032 (patch) | |
tree | 6fd84e96b5e758379a3fcb984b568f93bddf8f2d /ant_landscape/ant_functions.py | |
parent | 7580e19b74a2d7bb9f05e3ac40e1e2c1edc79fd9 (diff) |
ant landscape, fix for last commit
Diffstat (limited to 'ant_landscape/ant_functions.py')
-rw-r--r-- | ant_landscape/ant_functions.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py index 826d693e..01354295 100644 --- a/ant_landscape/ant_functions.py +++ b/ant_landscape/ant_functions.py @@ -1122,12 +1122,23 @@ class Eroder(bpy.types.Operator): default=False ) + weight_mode = BoolProperty( + name="Weight Paint Mode", + default=False, + description="Enter weightpaint mode" + ) + stats = Stats() counts= {} # add poll function to restrict action to mesh object in object mode def execute(self, context): + + # Enter WeightPaintMode + if self.weight_mode: + bpy.ops.paint.weight_paint_toggle() + ob = context.active_object #obwater = bpy.data.objects["water"] me = ob.data @@ -1322,6 +1333,8 @@ class Eroder(bpy.types.Operator): layout.prop(self,'smooth') + layout.prop(self,'weight_mode') + #if numexpr_available: # layout.prop(self, 'numexpr') #else: |