Page Menu
Home
Search
Configure Global Search
Log In
Files
F19540
noMTL.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
ed gautier (edddy)
Nov 13 2013, 4:17 PM
Size
1 KB
Subscribers
None
noMTL.patch
View Options
--- old_export_obj.py 2011-10-25 06:44:44.000000000 +0200
+++ export_obj.py 2011-12-03 18:45:32.103834522 +0100
@@ -492,7 +492,7 @@
if EXPORT_GROUP_BY_MAT:
# can be mat_image or (null)
fw("g %s_%s\n" % (name_compat(ob.name), name_compat(ob.data.name))) # can be mat_image or (null)
- fw("usemtl (null)\n") # mat, image
+ if EXPORT_MTL : fw("usemtl (null)\n") # mat, image
else:
mat_data = mtl_dict.get(key)
@@ -512,7 +512,7 @@
if EXPORT_GROUP_BY_MAT:
fw("g %s_%s_%s\n" % (name_compat(ob.name), name_compat(ob.data.name), mat_data[0])) # can be mat_image or (null)
- fw("usemtl %s\n" % mat_data[0]) # can be mat_image or (null)
+ if EXPORT_MTL : fw("usemtl %s\n" % mat_data[0]) # can be mat_image or (null)
contextMat = key
if f_smooth != contextSmooth:
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6c/fa/2ae86323cf77cf8ea107ea587fb1
Event Timeline
Log In to Comment