Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Converter/BL_BlenderDataConversion.cpp
| Show First 20 Lines • Show All 1,645 Lines • ▼ Show 20 Lines | #endif | ||||
| { | { | ||||
| gameobj = new KX_EmptyObject(kxscene,KX_Scene::m_callbacks); | gameobj = new KX_EmptyObject(kxscene,KX_Scene::m_callbacks); | ||||
| // set transformation | // set transformation | ||||
| break; | break; | ||||
| } | } | ||||
| case OB_FONT: | case OB_FONT: | ||||
| { | { | ||||
| bool do_color_management = !(blenderscene->gm.flag & GAME_GLSL_NO_COLOR_MANAGEMENT); | bool do_color_management = BKE_scene_check_color_management_enabled(blenderscene); | ||||
| /* font objects have no bounding box */ | /* font objects have no bounding box */ | ||||
| gameobj = new KX_FontObject(kxscene,KX_Scene::m_callbacks, rendertools, ob, do_color_management); | gameobj = new KX_FontObject(kxscene,KX_Scene::m_callbacks, rendertools, ob, do_color_management); | ||||
| /* add to the list only the visible fonts */ | /* add to the list only the visible fonts */ | ||||
| if ((ob->lay & kxscene->GetBlenderScene()->lay) != 0) | if ((ob->lay & kxscene->GetBlenderScene()->lay) != 0) | ||||
| kxscene->AddFont(static_cast<KX_FontObject*>(gameobj)); | kxscene->AddFont(static_cast<KX_FontObject*>(gameobj)); | ||||
| break; | break; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines | |||||