Cleanup: rename lamp -> light
This commit is contained in:
@@ -404,7 +404,7 @@ void BCAnimationSampler::initialize_keyframes(BCFrameSet &frameset, Object *ob)
|
||||
frameset.clear();
|
||||
add_keyframes_from(bc_getSceneObjectAction(ob), frameset);
|
||||
add_keyframes_from(bc_getSceneCameraAction(ob), frameset);
|
||||
add_keyframes_from(bc_getSceneLampAction(ob), frameset);
|
||||
add_keyframes_from(bc_getSceneLightAction(ob), frameset);
|
||||
|
||||
for (int a = 0; a < ob->totcol; a++) {
|
||||
Material *ma = give_current_material(ob, a + 1);
|
||||
@@ -451,12 +451,12 @@ void BCAnimationSampler::initialize_curves(BCAnimationCurveMap &curves, Object *
|
||||
object_type = BC_ANIMATION_TYPE_CAMERA;
|
||||
}
|
||||
else if (ob->type == OB_LAMP) {
|
||||
action = bc_getSceneLampAction(ob);
|
||||
action = bc_getSceneLightAction(ob);
|
||||
object_type = BC_ANIMATION_TYPE_LIGHT;
|
||||
}
|
||||
|
||||
if (action) {
|
||||
/* Add lamp action or Camera action */
|
||||
/* Add light action or Camera action */
|
||||
FCurve *fcu = (FCurve *)action->curves.first;
|
||||
for (; fcu; fcu = fcu->next) {
|
||||
BCCurveKey key(object_type, fcu->rna_path, fcu->array_index);
|
||||
|
||||
Reference in New Issue
Block a user