Exemplo n.º 1
0
 def execute(self, context):
     if bpy.context.mode == "OBJECT":
         Updater.resetCounts(self)
         return {'FINISHED'}
     else:
         self.report({'WARNING'}, "RoundedProfile:reset counter works only in Object mode")
         return {'CANCELLED'}
 def execute(self, context):
     if bpy.context.mode == "OBJECT":
         Updater.createRoundedProfile(self, context)
         return {'FINISHED'}
     else:
         self.report({'WARNING'}, "RoundedProfile: works only in Object mode")
         return {'CANCELLED'}
Exemplo n.º 3
0
 def execute(self, context):
     if bpy.context.mode == "OBJECT":
         Updater.addCornerToRoundedProfile(self, context, self.cornerId)
         return {'FINISHED'}
     else:
         self.report({'WARNING'}, "RoundedProfile:add corner works only in Object mode")
         return {'CANCELLED'}