[Bf-extensions-cvs] [0a8331d] master: improved error reports: T45372 thanks Leon(Leon95)

Brendon Murphy noreply at git.blender.org
Tue Aug 25 12:21:55 CEST 2015


Commit: 0a8331db8fa64c9c4486b130463f2fc06dfc6559
Author: Brendon Murphy
Date:   Tue Aug 25 20:21:32 2015 +1000
Branches: master
https://developer.blender.org/rBA0a8331db8fa64c9c4486b130463f2fc06dfc6559

improved error reports: T45372 thanks Leon(Leon95)

===================================================================

M	mesh_bsurfaces.py

===================================================================

diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index 4c57280..80595e7 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -3205,7 +3205,7 @@ class GPENCIL_OT_SURFSK_add_surface(bpy.types.Operator):
             bpy.context.user_preferences.edit.use_global_undo = self.initial_global_undo_state
 
             if created_faces_count == 0:
-                self.report({'WARNING'}, "There aren't any strokes.")
+                self.report({'WARNING'}, "There aren't any strokes attatched to the object")
                 return {"CANCELLED"}
             else:
                 return {"FINISHED"}
@@ -3226,7 +3226,7 @@ class GPENCIL_OT_SURFSK_add_surface(bpy.types.Operator):
             return{"CANCELLED"}
 
         elif self.strokes_type == "NO_STROKES":
-            self.report({'WARNING'}, "There aren't any strokes.")
+            self.report({'WARNING'}, "There aren't any strokes attatched to the object")
             return{"CANCELLED"}
 
         elif self.strokes_type == "CURVE_WITH_NON_BEZIER_SPLINES":
@@ -3298,7 +3298,7 @@ class GPENCIL_OT_SURFSK_edit_strokes(bpy.types.Operator):
             self.report({'WARNING'}, "There shouldn't be more than one secondary object selected.")
             return{"CANCELLED"}
         elif self.strokes_type == "NO_STROKES" or self.strokes_type == "SELECTION_ALONE":
-            self.report({'WARNING'}, "There aren't any strokes.")
+            self.report({'WARNING'}, "There aren't any strokes attatched to the object")
             return{"CANCELLED"}
         else:
             return{"CANCELLED"}



More information about the Bf-extensions-cvs mailing list