Added dropdown choices into JSON properties, so a UI can correctly list the options for certain properties. Fixed a bug when deleting all Points from a Keyframe, and added some missing Enums from the Python/Ruby bindings.

This commit is contained in:
Jonathan Thomas
2015-10-02 18:22:10 -05:00
parent ac7be90544
commit 358e0835d2
11 changed files with 61 additions and 13 deletions

View File

@@ -377,7 +377,6 @@ void Keyframe::SetJsonValue(Json::Value root) {
if (!root["Auto_Handle_Percentage"].isNull())
Auto_Handle_Percentage = root["Auto_Handle_Percentage"].asBool();
}
// Get the fraction that represents how many times this value is repeated in the curve
@@ -534,9 +533,12 @@ void Keyframe::Process() {
#pragma omp critical (keyframe_process)
{
// only process if needed
if (needs_update && Points.size() > 0)
if (needs_update && Points.size() == 0) {
// Clear all values
Values.clear();
}
else if (needs_update && Points.size() > 0)
{
// Clear all values
Values.clear();