forked from mambobanda/LW_Colorida_Cloner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddNullNode.cpp
More file actions
43 lines (32 loc) · 1021 Bytes
/
Copy pathAddNullNode.cpp
File metadata and controls
43 lines (32 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* The Mailo Today Solutions Software License
*
* Copyright 2016 Mailo Today Solutions.
*
* This program is free software, distributed under the terms of the
* GNU General Public License (GPL)
* http://www.gnu.org/licenses
*/
#include <lwrender.h>
#include "DeepCloneFX.h"
#include "LightwaveCommon.h"
#include "AddNullNode.h"
AddNullNode::AddNullNode(){
isReady = false;
}
void AddNullNode::setGlobal( GlobalFunc *global ){
_global = global;
}
void AddNullNode::evaluate(){
if(!isReady){
LWCommandFunc *evaluate = (LWCommandFunc *)_global( LWCOMMANDFUNC_GLOBAL, GFUSE_TRANSIENT );
LWInterfaceInfo *intinfo = (LWInterfaceInfo *)_global( LWINTERFACEINFO_GLOBAL, GFUSE_TRANSIENT );
char eval[200];
sprintf_s(eval, sizeof(eval), "AddNull _DeepCloneNull_");
evaluate(eval);
DeepCloneFX::points = in_Positions;
sprintf_s(eval, sizeof(eval), "ApplyServer CustomObjHandler DeepClone_Clone_Visualizer");
evaluate(eval);
isReady = true;
}
}