[Bf-extensions-cvs] [878f977] master: Fix T47166 - Updating bundled addons for the Grease Pencil PyAPI changes

Joshua Leung noreply at git.blender.org
Tue Jan 12 12:44:43 CET 2016


Commit: 878f9773d3dc2365f12a57f683e754b968239848
Author: Joshua Leung
Date:   Wed Jan 13 00:44:35 2016 +1300
Branches: master
https://developer.blender.org/rBAC878f9773d3dc2365f12a57f683e754b968239848

Fix T47166 - Updating bundled addons for the Grease Pencil PyAPI changes

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

M	space_view3d_paint_bprojection.py

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

diff --git a/space_view3d_paint_bprojection.py b/space_view3d_paint_bprojection.py
index c4dc1a8..b85c1e3 100644
--- a/space_view3d_paint_bprojection.py
+++ b/space_view3d_paint_bprojection.py
@@ -829,7 +829,7 @@ class AddBProjectionPlane(Operator):
 
 
             bpy.ops.gpencil.data_add()
-            ob.grease_pencil.draw_mode = 'VIEW'
+            bpy.context.tool_settings.gpencil_stroke_placement_view3d = 'VIEW'
             bpy.ops.gpencil.layer_add()
             ob.grease_pencil.layers.active.color = [1.0,0,0]



More information about the Bf-extensions-cvs mailing list