MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / refreshDynamicProperties

Method refreshDynamicProperties

Engine/Node.cpp:380–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void
381Node::refreshDynamicProperties()
382{
383 PluginOpenGLRenderSupport pluginGLSupport = ePluginOpenGLRenderSupportNone;
384 if (_imp->plugin) {
385 pluginGLSupport = _imp->plugin->getPluginOpenGLRenderSupport();
386 if (_imp->plugin->isOpenGLEnabled() && pluginGLSupport == ePluginOpenGLRenderSupportYes) {
387 // Ok the plug-in supports OpenGL, figure out now if can be turned on/off by the instance
388 pluginGLSupport = _imp->effect->supportsOpenGLRender();
389 }
390 }
391
392
393 setCurrentOpenGLRenderSupport(pluginGLSupport);
394 bool tilesSupported = _imp->effect->supportsTiles();
395 bool multiResSupported = _imp->effect->supportsMultiResolution();
396 bool canTransform = _imp->effect->getCanTransform();
397 RenderSafetyEnum safety = _imp->effect->renderThreadSafety();
398 setRenderThreadSafety(safety);
399 setCurrentSupportTiles(multiResSupported && tilesSupported);
400 setCurrentSequentialRenderSupport( _imp->effect->getSequentialPreference() );
401 setCurrentCanTransform(canTransform);
402}
403
404bool
405Node::isRenderScaleSupportEnabledForPlugin() const

Callers 1

Calls 8

isOpenGLEnabledMethod · 0.80
supportsOpenGLRenderMethod · 0.80
supportsTilesMethod · 0.45
getCanTransformMethod · 0.45
renderThreadSafetyMethod · 0.45

Tested by

no test coverage detected