fix: env setup

fix: gpencil api change
This commit is contained in:
Swann Martinez
2019-05-23 16:49:32 +02:00
parent 53f0811b94
commit d53165f17e
6 changed files with 20923 additions and 15 deletions

View File

@ -365,9 +365,9 @@ class SessionSnapUserOperator(bpy.types.Operator):
def execute(self, context):
area, region, rv3d = draw.view3d_find()
client = client.instance.get("Client/{}".format(self.target_client))
if client:
rv3d.view_location = client[0][1]['location'][0]
target_client = client.instance.get("Client/{}".format(self.target_client))
if target_client:
rv3d.view_location = target_client[0][1]['location'][0]
rv3d.view_distance = 30.0
return {"FINISHED"}