paint: external plugins
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
**/build*/
|
**/build*/
|
||||||
|
paint/plugins/external
|
||||||
.vscode
|
.vscode
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.blend1
|
|
||||||
|
|||||||
@@ -148,6 +148,10 @@ static void *import_fbx(char *path) {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_EXTERNAL
|
||||||
|
void external_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
void plugins_init() {
|
void plugins_init() {
|
||||||
path_texture_formats(); // Init array
|
path_texture_formats(); // Init array
|
||||||
any_map_set(import_texture_importers, "exr", import_exr);
|
any_map_set(import_texture_importers, "exr", import_exr);
|
||||||
@@ -170,6 +174,10 @@ void plugins_init() {
|
|||||||
any_array_push(_path_mesh_formats, "fbx");
|
any_array_push(_path_mesh_formats, "fbx");
|
||||||
|
|
||||||
any_map_set(util_mesh_unwrappers, "uv_unwrap", proc_uv_unwrap);
|
any_map_set(util_mesh_unwrappers, "uv_unwrap", proc_uv_unwrap);
|
||||||
|
|
||||||
|
#ifdef WITH_EXTERNAL
|
||||||
|
external_init();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -9,4 +9,9 @@ project.add_cfiles("io_gltf/**");
|
|||||||
project.add_cfiles("io_fbx/**");
|
project.add_cfiles("io_fbx/**");
|
||||||
project.add_cfiles("io_tiff/**");
|
project.add_cfiles("io_tiff/**");
|
||||||
|
|
||||||
|
if (fs_exists(os_cwd() + "/../paint/plugins/external")) {
|
||||||
|
project.add_cfiles("external/**");
|
||||||
|
project.add_define("WITH_EXTERNAL");
|
||||||
|
}
|
||||||
|
|
||||||
return project;
|
return project;
|
||||||
|
|||||||
Reference in New Issue
Block a user