diff options
Diffstat (limited to 'release/scripts/export_fbx.py')
-rw-r--r-- | release/scripts/export_fbx.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/release/scripts/export_fbx.py b/release/scripts/export_fbx.py index 99d036b38bc..3f02a71f951 100644 --- a/release/scripts/export_fbx.py +++ b/release/scripts/export_fbx.py @@ -1101,12 +1101,12 @@ def write(filename, batch_objects = None, \ file.write('\n\t\t\tProperty: "ShadingModel", "KString", "", "%s"' % mat_shader) file.write('\n\t\t\tProperty: "MultiLayer", "bool", "",0') file.write('\n\t\t\tProperty: "EmissiveColor", "ColorRGB", "",%.4f,%.4f,%.4f' % mat_cold) # emit and diffuse color are he same in blender - file.write('\n\t\t\tProperty: "EmissiveFactor", "double", "",%.4f' % mat_dif) + file.write('\n\t\t\tProperty: "EmissiveFactor", "double", "",%.4f' % mat_emit) file.write('\n\t\t\tProperty: "AmbientColor", "ColorRGB", "",%.4f,%.4f,%.4f' % mat_colamb) file.write('\n\t\t\tProperty: "AmbientFactor", "double", "",%.4f' % mat_amb) file.write('\n\t\t\tProperty: "DiffuseColor", "ColorRGB", "",%.4f,%.4f,%.4f' % mat_cold) - file.write('\n\t\t\tProperty: "DiffuseFactor", "double", "",%.4f' % mat_emit) + file.write('\n\t\t\tProperty: "DiffuseFactor", "double", "",%.4f' % mat_dif) file.write('\n\t\t\tProperty: "Bump", "Vector3D", "",0,0,0') file.write('\n\t\t\tProperty: "TransparentColor", "ColorRGB", "",1,1,1') file.write('\n\t\t\tProperty: "TransparencyFactor", "double", "",%.4f' % (1.0 - mat_alpha)) @@ -2887,7 +2887,7 @@ def fbx_ui(): def write_ui(): # globals - GLOBALS['EVENT'] = 2 + GLOBALS['EVENT'] = EVENT_REDRAW #GLOBALS['MOUSE'] = Window.GetMouseCoords() GLOBALS['MOUSE'] = [i/2 for i in Window.GetScreenSize()] GLOBALS['FILENAME'] = '' @@ -2929,13 +2929,6 @@ def write_ui(): GLOBALS['_YROT90'] = Draw.Create(False) GLOBALS['_ZROT90'] = Draw.Create(False) - # horrible ugly hack so tooltips draw, dosnt always work even - # Fixed in Draw.UIBlock for 2.45rc2, but keep this until 2.45 is released - Window.SetKeyQualifiers(0) - while Window.GetMouseButtons(): Blender.sys.sleep(10) - for i in xrange(100): Window.QHandle(i) - # END HORRID HACK - # best not do move the cursor # Window.SetMouseCoords(*[i/2 for i in Window.GetScreenSize()]) @@ -2959,7 +2952,7 @@ def write_ui(): #fbx_ui_write('/test.fbx') break - Draw.UIBlock(fbx_ui) + Draw.UIBlock(fbx_ui, 0) # GLOBALS.clear() |