def b_create_object(self):
     b_obj = TestBaseUV.b_create_object(self)
     b_mat = bpy.data.materials.new(name='Material')
     b_mat.specular_intensity = 0 # disable NiSpecularProperty
     b_obj.data.materials.append(b_mat)
     
     #TODO_3.0 - See above
     b_mat.ambient = 1.0
     b_mat.diffuse_color = (1.0,1.0,1.0)
     b_mat.diffuse_intensity = 1.0
     
     #bpy.ops.wm.save_mainfile(filepath="test/autoblend/" + self.n_name)
     return b_obj
    def b_create_object(self):
        b_obj = TestBaseUV.b_create_object(self)
        b_mat = bpy.data.materials.new(name='Material')
        b_mat.specular_intensity = 0  # disable NiSpecularProperty
        b_obj.data.materials.append(b_mat)

        #TODO_3.0 - See above
        b_mat.ambient = 1.0
        b_mat.diffuse_color = (1.0, 1.0, 1.0)
        b_mat.diffuse_intensity = 1.0

        #bpy.ops.wm.save_mainfile(filepath="test/autoblend/" + self.n_name)
        return b_obj
 def n_check_data(self, n_data):
     TestBaseUV.n_check_data(self, n_data)
     n_geom = n_data.roots[0].children[0]    
     nose.tools.assert_equal(n_geom.num_properties, 1)
     self.n_check_material_property(n_geom.properties[0])
 def b_check_object(self, b_obj):
     TestBaseUV.b_check_data(self, b_obj)
     b_mesh = b_obj.data
     b_mat = b_mesh.materials[0]
     nose.tools.assert_equal(len(b_mesh.materials), 1)
 def b_check_data(self, b_obj):
     TestBaseUV.b_check_data(self, b_obj)
     self.b_check_stencil_property(b_obj)
 def b_create_object(self):
     b_obj = TestBaseUV.b_create_object(self)
     b_obj.data.show_double_sided = True
     
     #bpy.ops.wm.save_mainfile(filepath="test/autoblend/" + self.n_name)
     return b_obj
 def n_check_data(self, n_data):
     TestBaseUV.n_check_data(self, n_data)
     n_geom = n_data.roots[0].children[0]
     nose.tools.assert_equal(n_geom.num_properties, 1)
     self.n_check_material_property(n_geom.properties[0])
 def b_check_object(self, b_obj):
     TestBaseUV.b_check_data(self, b_obj)
     b_mesh = b_obj.data
     b_mat = b_mesh.materials[0]
     nose.tools.assert_equal(len(b_mesh.materials), 1)
 def b_check_data(self, b_obj):
     TestBaseUV.b_check_data(self, b_obj)
     self.b_check_stencil_property(b_obj)
    def b_create_object(self):
        b_obj = TestBaseUV.b_create_object(self)
        b_obj.data.show_double_sided = True

        #bpy.ops.wm.save_mainfile(filepath="test/autoblend/" + self.n_name)
        return b_obj