~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to release/scripts/addons/io_coat3D/coat.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
 
229
229
        obj.location = (0,0,0)
230
230
        obj.rotation_euler = (0,0,0)
231
 
        obj.scale = (1,1,1)
232
 
 
 
231
        bpy.ops.object.transform_apply(scale=True)
 
232
        
233
233
        bpy.ops.export_scene.obj(filepath=coa.applink_name,use_selection=True,
234
 
        use_apply_modifiers=False,use_blen_objects=True, group_by_material= True,
235
 
        use_materials = False,keep_vertex_order = True,axis_forward='X',axis_up='Y')
236
 
 
 
234
        use_apply_modifiers=False,use_blen_objects=True, use_materials = False,
 
235
        keep_vertex_order = True,axis_forward='X',axis_up='Y')
 
236
        
237
237
        obj.location = coa.loc
238
238
        obj.rotation_euler = coa.rot
239
 
        obj.scale = coa.sca
 
239
        
240
240
 
241
241
        bpy.context.scene.cursor_location = coat3D.cursor_loc
242
242
        bpy.context.scene.cursor_location = coat3D.cursor_orginal
249
249
        file.close()
250
250
 
251
251
        coa.objecttime = str(os.path.getmtime(coa.applink_name))
 
252
        
 
253
        
252
254
               
253
255
        return {'FINISHED'}
254
256
 
390
392
                        obj_data = objekti.data.id_data
391
393
                        objekti.data = obj_proxy.data.id_data
392
394
                        if(bpy.data.meshes[obj_data.name].users == 0):
 
395
                            objekti.data.id_data.name = obj_data.name
393
396
                            bpy.data.meshes.remove(obj_data)
394
 
                            objekti.data.id_data.name = obj_data.name
 
397
                            
395
398
 
396
399
                    obj_proxy.select = True
397
400
                    bpy.ops.object.delete()