예제 #1
0
    def b_check_data(self):
        b_obj = bpy.data.objects[self.b_name]
        # TODO [geometry][uv] assertions should go in here.

        b_mat = b_gen_material.b_check_material_block(
            b_obj)  # check we have a material
        b_gen_material.b_check_material_property(b_mat)  # check its values

        # diffuse
        nose.tools.assert_equal(b_mat.texture_slots[0] is not None,
                                True)  # check slot exists
        b_texslot_diffuse = b_mat.texture_slots[0]
        b_gen_texture.b_check_texture_slot(b_texslot_diffuse)
        b_gen_texture.b_check_image_texture_property(
            b_texslot_diffuse, self.diffuse_texture_abs_path)
        b_gen_diffusemap.b_check_diffuse_texture_settings(b_texslot_diffuse)

        # bump
        nose.tools.assert_equal(b_mat.texture_slots[1] is not None,
                                True)  # check slot exists
        b_texslot_bump = b_mat.texture_slots[1]
        b_gen_texture.b_check_texture_slot(b_texslot_bump)
        b_gen_texture.b_check_image_texture_property(
            b_texslot_bump, self.bumpmap_texture_abs_path)
        b_gen_bumpmap.b_check_bumpmap_texture_settings(b_texslot_bump)
예제 #2
0
 def b_check_data(self):
     b_obj = bpy.data.objects[self.b_name]
     b_gen_geometry.b_check_geom_obj(b_obj)
     b_mat = b_gen_material.b_check_material_block(b_obj)
     b_gen_material.b_check_material_property(b_mat)
     b_gen_alpha.b_check_alpha_property(b_mat)  # check alpha
 def b_check_data(self):
     b_obj = bpy.data.objects[self.b_name]
     b_gen_geometry.b_check_geom_obj(b_obj)
     b_mat = b_gen_material.b_check_material_block(b_obj)
     b_gen_specular.b_check_specular_property(b_mat)
예제 #4
0
 def b_check_data(self):
     b_obj = bpy.data.objects[self.b_name]
     b_gen_geometry.b_check_geom_obj(b_obj)
     b_mat = b_gen_material.b_check_material_block(b_obj)  # check we have a material
     b_gen_material.b_check_material_property(b_mat)  # check its values