[Bf-extensions-cvs] [c788daba] blender2.8: Small transform bug and remove prints. Conserning addon this very stable at the moment.

Kalle-Samuli Riihikoski noreply at git.blender.org
Wed Aug 29 09:31:36 CEST 2018


Commit: c788dabab42251e6e959a4cea04224bece1655a5
Author: Kalle-Samuli Riihikoski
Date:   Wed Aug 29 10:29:59 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBAc788dabab42251e6e959a4cea04224bece1655a5

Small transform bug and remove prints. Conserning addon this very stable at the moment.

===================================================================

M	io_coat3D/__init__.py
M	io_coat3D/tex.py

===================================================================

diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index d5e0f924..71dee2a9 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -439,7 +439,6 @@ class SCENE_OT_import(bpy.types.Operator):
 
 
                         new_name = objekti.data.name
-                        print('Data nimi', objekti.data.name)
                         name_boxs = new_name.split('.')
                         if len(name_boxs) > 1:
                             if len(name_boxs[-1]) == 3:
@@ -448,14 +447,12 @@ class SCENE_OT_import(bpy.types.Operator):
                                 uusi_nimi = ("%s.%.3d" % (new_name[:-4], luku))
                                 find_name = uusi_nimi
                         else:
-                            print('tuullekko tienna')
                             find_name = objekti.data.name
                             tosi = True
                             luku = 1
                             find_name = ("%s.%.3d" % (objekti.data.name, luku))
                             loyty = False
                             while tosi:
-                                print('etsitaan', find_name)
                                 for obj in bpy.data.meshes:
                                     if (obj.name == find_name):
                                         loyty = True
@@ -475,7 +472,6 @@ class SCENE_OT_import(bpy.types.Operator):
 
 
                     for proxy_objects in diff_objects:
-                        print('ovatko samoja',bpy.data.objects[proxy_objects].data.name,find_name)
                         if (bpy.data.objects[proxy_objects].data.name == find_name):
                             obj_proxy = bpy.data.objects[proxy_objects]
                             break
@@ -534,10 +530,6 @@ class SCENE_OT_import(bpy.types.Operator):
                     #tärkee että saadaan oikein käännettyä objekt
 
                     objekti.select_set('SELECT')
-                    if (objekti.coat3D.applink_firsttime == True):
-                        objekti.scale = (1, 1, 1)
-                        objekti.rotation_euler = (0,0,0)
-                        objekti.coat3D.applink_firsttime = False
                     bpy.ops.object.origin_set(type='GEOMETRY_ORIGIN')
                     objekti.material_slots[0].material = act_mat
 
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index 59e41a61..b6ea441e 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -46,8 +46,6 @@ def readtexturefolder(objekti,is_new): #read textures from texture file
     files = os.listdir(files_dir)
     materiaali_muutos = objekti.active_material.name
     uusin_mat = materiaali_muutos.replace('Material.','Material_')
-    print('tassa pitaisi olla jotain outoo')
-    print(obj_coat.applink_name + '_' + uusin_mat)
     new_name = (obj_coat.applink_name + '_' + uusin_mat)
     name_boxs = new_name.split('.')
     if len(name_boxs) > 1:
@@ -58,7 +56,6 @@ def readtexturefolder(objekti,is_new): #read textures from texture file
             koko_osoite = files_dir + os.sep + i
             listed = re.split(r'[_.]', i)
             tex_name = listed[-2]
-            print('koko osoite', koko_osoite)
             texcoat[tex_name].append(koko_osoite)
 
     createnodes(objekti, texcoat)
@@ -85,7 +82,6 @@ def createnodes(objekti,texcoat): #luo nodes palikat ja linkittaa tekstuurit nii
 
     for node in act_material.node_tree.nodes:
         if(node.type == 'TEX_IMAGE'):
-            print('hhheeetkinen')
             if(node.name == '3DC_color'):
                 bring_color = False
                 node.image.reload()



More information about the Bf-extensions-cvs mailing list