Compositor: Use RBF Interpolation in Keying Screen node #112480

Merged
Omar Emara merged 5 commits from OmarEmaraDev/blender:rbf-keying-screen into main 2023-10-04 07:07:14 +02:00
3 changed files with 2 additions and 23 deletions
Showing only changes of commit 240534e557 - Show all commits

View File

@ -29,7 +29,7 @@ extern "C" {
/* Blender file format version. */
#define BLENDER_FILE_VERSION BLENDER_VERSION
#define BLENDER_FILE_SUBVERSION 1
#define BLENDER_FILE_SUBVERSION 0
/* Minimum Blender version that supports reading file written with the current
* version. Older Blender versions will test this and cancel loading the file, showing a warning to

View File

@ -1012,17 +1012,6 @@ static void enable_geometry_nodes_is_modifier(Main &bmain)
}
}
static void set_default_keying_screen_smoothness(bNodeTree *ntree)
{
LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
if (node->type != CMP_NODE_KEYINGSCREEN) {
continue;
}
NodeKeyingScreenData *data = static_cast<NodeKeyingScreenData *>(node->storage);
data->smoothness = 0.2f;
}
}
void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
{
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 400, 1)) {
@ -1641,16 +1630,6 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
}
}
}
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 401, 1)) {
FOREACH_NODETREE_BEGIN (bmain, ntree, id) {
if (ntree->type == NTREE_COMPOSIT) {
set_default_keying_screen_smoothness(ntree);
}
}
FOREACH_NODETREE_END;
}
/**
* Versioning code until next subversion bump goes here.
*

View File

@ -41,7 +41,7 @@ static void node_composit_init_keyingscreen(const bContext *C, PointerRNA *ptr)
bNode *node = (bNode *)ptr->data;
NodeKeyingScreenData *data = MEM_cnew<NodeKeyingScreenData>(__func__);
data->smoothness = 0.2f;
data->smoothness = 0.0f;
node->storage = data;
const Scene *scene = CTX_data_scene(C);