Proposed fix for T53263 -- Blender crashes when rendering with Stabilizer 2D node without movie selected

The program won't crash anymore, but a warning won't be displayed. Anyway, this gives the user the chance to save the project.

https://developer.blender.org/T53263

Reviewers: lukastoenne

Differential Revision: https://developer.blender.org/D2934
This commit is contained in:
Daniel Silva 2017-12-06 14:53:21 +01:00 committed by Bastien Montagne
parent 3659620b47
commit ce35151f38
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ MovieClipAttributeOperation::MovieClipAttributeOperation() : NodeOperation()
void MovieClipAttributeOperation::initExecution()
{
if (this->m_clip == NULL) {
return;
}
float loc[2], scale, angle;
loc[0] = 0.0f;
loc[1] = 0.0f;