Example #1
0
    def b_check_data(self):
        b_obj = bpy.data.objects[self.b_name]
        # TODO - probably should stick in some UV tests at some point.

        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] != 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_path)
        b_gen_diffusemap.b_check_diffuse_texture_settings(b_texslot_diffuse)

        # glow
        nose.tools.assert_equal(b_mat.texture_slots[1] != None,
                                True)  # check slot exists
        b_texslot_glow = b_mat.texture_slots[1]
        b_gen_texture.b_check_texture_slot(b_texslot_glow)
        b_gen_texture.b_check_image_texture_property(b_texslot_glow,
                                                     self.glowmap_texture_path)
        b_gen_glowmap.b_check_glow_texture_settings(b_texslot_glow)
 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_wire.b_check_wire_property(b_mat)
Example #3
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