Skip to content
Snippets Groups Projects
Commit 0195eb5c authored by Geo Kgeo's avatar Geo Kgeo
Browse files

BProjection: fix a small bug when there's no image in the first execution

parent a35d08a2
No related branches found
No related tags found
No related merge requests found
...@@ -305,7 +305,10 @@ class Copyiew(Operator): ...@@ -305,7 +305,10 @@ class Copyiew(Operator):
prop.custom_linkscaleuv = ob.custom_linkscaleuv prop.custom_linkscaleuv = ob.custom_linkscaleuv
prop.custom_flipuvx = ob.custom_flipuvx prop.custom_flipuvx = ob.custom_flipuvx
prop.custom_flipuvy = ob.custom_flipuvy prop.custom_flipuvy = ob.custom_flipuvy
try:
prop.custom_image = bpy.data.textures['Texture for BProjection'].image.name prop.custom_image = bpy.data.textures['Texture for BProjection'].image.name
except:
do = 'nothing'
#bpy.ops.object.active_view(index = self.index) #bpy.ops.object.active_view(index = self.index)
return {'FINISHED'} return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment