WowDevTools / Blender-WMO-import-export-scripts

Script addon for Blender featuring World of Warcraft World Model Object (WMO) editing functionality.
GNU General Public License v3.0
38 stars 17 forks source link

Vertex shading indoors #13

Closed Amaroth closed 7 years ago

Amaroth commented 7 years ago

In indoor group has vertex shading off, client will crash. If vertex shading is on, but none is set to actual geometry, client will crash.

I'd suggest turning vertex shading on and assigning some default color value to all verticles for all indoor groups on export, if they have vertex shading turned off or if they don't have vertex shading assigned to all verticles, so one doesn't have to do this by hand.

gratural commented 7 years ago

As variant, you can use bpy.ops.paint.vertex_color_set() or even bpy.ops.paint.vertex_color_dirt() when 'indoor' flag has been selected. But only once, and if vertex colors are not set.

skarndev commented 7 years ago

Should be solved. Please test and confirm.

Amaroth commented 7 years ago

It seems everything works fine now.