diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_proj.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 1f0b2c80fc4..5c1af41e05d 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3292,7 +3292,7 @@ static void project_paint_begin(ProjPaintState *ps) continue; if (slot != slot_last) { - if (!slot->uvname[0] || !(tf_base = CustomData_get_layer_named(&ps->dm->faceData, CD_MTFACE, slot->uvname))) + if (!slot->uvname || !(tf_base = CustomData_get_layer_named(&ps->dm->faceData, CD_MTFACE, slot->uvname))) tf_base = CustomData_get_layer(&ps->dm->faceData, CD_MTFACE); slot_last = slot; } @@ -3313,7 +3313,7 @@ static void project_paint_begin(ProjPaintState *ps) tf_clone = ps->dm_mtface_clone + face_index; if (slot_clone != slot_last_clone) { - if (!slot_clone->uvname[0] || !(tf_clone_base = CustomData_get_layer_named(&ps->dm->faceData, CD_MTFACE, slot_clone->uvname))) + if (!slot->uvname || !(tf_clone_base = CustomData_get_layer_named(&ps->dm->faceData, CD_MTFACE, slot_clone->uvname))) tf_clone_base = CustomData_get_layer(&ps->dm->faceData, CD_MTFACE); slot_last_clone = slot_clone; } |