diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-07-13 12:21:39 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-07-13 12:34:39 +0300 |
commit | e2c5cd7326840b89c2c8b80c5b85339206b3f0ac (patch) | |
tree | a45b0494c6b3b70e32f23729cdfbb361b810be75 | |
parent | 142ef5b432e883f70fdd103e006f47393c6b3a18 (diff) |
Fix T55960: Bsurfaces error with international 'Translate New Data'
option
thanx @icyp for investigating
-rw-r--r-- | mesh_bsurfaces.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 80943858..b6debec2 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -3156,8 +3156,10 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): # XXX gpencil.convert now keep org object as active/selected, *not* newly created curve! # XXX This is far from perfect, but should work in most cases... # self.original_curve = bpy.context.object + gplayer_prefix_translated = bpy.app.translations.pgettext_data('GP_Layer') for ob in bpy.context.selected_objects: - if ob != bpy.context.scene.objects.active and ob.name.startswith("GP_Layer"): + if ob != bpy.context.scene.objects.active and \ + ob.name.startswith((gplayer_prefix_translated, 'GP_Layer')): self.original_curve = ob self.using_external_curves = False elif self.strokes_type == "EXTERNAL_CURVE": |