[Bf-blender-cvs] [fcd1137] cycles-ptex-49: Use filename as the new layer name in Ptex import operator
Nicholas Bishop
noreply at git.blender.org
Mon Feb 9 00:48:56 CET 2015
Commit: fcd11373c713abb49e9dbee84de03b9c93a989c3
Author: Nicholas Bishop
Date: Mon Feb 9 00:37:13 2015 +0100
Branches: cycles-ptex-49
https://developer.blender.org/rBfcd11373c713abb49e9dbee84de03b9c93a989c3
Use filename as the new layer name in Ptex import operator
===================================================================
M source/blender/blenkernel/intern/bke_ptex.c
===================================================================
diff --git a/source/blender/blenkernel/intern/bke_ptex.c b/source/blender/blenkernel/intern/bke_ptex.c
index 061d595..ee9b4ae 100644
--- a/source/blender/blenkernel/intern/bke_ptex.c
+++ b/source/blender/blenkernel/intern/bke_ptex.c
@@ -34,6 +34,7 @@
#include "DNA_mesh_types.h"
#include "DNA_modifier_types.h"
+#include "BLI_path_util.h"
#include "BLI_math_base.h"
#include "BLI_math_interp.h"
@@ -997,10 +998,9 @@ bool BKE_ptex_import(Mesh *me, const char *filepath)
return false;
}
- // Layer name TODO
loop_ptex = CustomData_add_layer_named(&me->ldata, CD_LOOP_PTEX,
CD_CALLOC, NULL, me->totloop,
- "<TODO>");
+ BLI_path_basename(filepath));
if (!loop_ptex) {
BPX_image_input_free(input);
More information about the Bf-blender-cvs
mailing list