Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-10-22 17:20:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-22 17:20:01 +0300
commite6c943c9176d2bcf40bd40c9b0212df4f87858b5 (patch)
tree79b697364f3f14ff95229c2a82a9922a175bc55d /source/blender/blenloader
parente7cd64dc971286f2430be9ad652a3031f91068a2 (diff)
Cleanup: remove script ID-types
Unused since 2.4x and unlikely to be reintroduced as ID-types.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c11
-rw-r--r--source/blender/blenloader/intern/versioning_legacy.c1
-rw-r--r--source/blender/blenloader/intern/writefile.c13
3 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 6545a3b0e67..b112f3d43d6 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2220,14 +2220,6 @@ static void direct_link_paint_curve(FileData *fd, PaintCurve *pc)
pc->points = newdataadr(fd, pc->points);
}
-
-static void direct_link_script(FileData *UNUSED(fd), Script *script)
-{
- script->id.us = 1;
- SCRIPT_SET_NULL(script);
-}
-
-
/* ************ READ PACKEDFILE *************** */
static PackedFile *direct_link_packedfile(FileData *fd, PackedFile *oldpf)
@@ -8035,9 +8027,6 @@ static BHead *read_libblock(FileData *fd, Main *main, BHead *bhead, int flag, ID
case ID_PA:
direct_link_particlesettings(fd, (ParticleSettings*)id);
break;
- case ID_SCRIPT:
- direct_link_script(fd, (Script*)id);
- break;
case ID_GD:
direct_link_gpencil(fd, (bGPdata *)id);
break;
diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c
index 12069fd80dd..635df922c11 100644
--- a/source/blender/blenloader/intern/versioning_legacy.c
+++ b/source/blender/blenloader/intern/versioning_legacy.c
@@ -3246,7 +3246,6 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *main)
idproperties_fix_group_lengths(main->key);
idproperties_fix_group_lengths(main->world);
idproperties_fix_group_lengths(main->screen);
- idproperties_fix_group_lengths(main->script);
idproperties_fix_group_lengths(main->vfont);
idproperties_fix_group_lengths(main->text);
idproperties_fix_group_lengths(main->sound);
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index d320274ef96..4449db14c50 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -3214,18 +3214,6 @@ static void write_paintcurves(WriteData *wd, ListBase *idbase)
}
}
-static void write_scripts(WriteData *wd, ListBase *idbase)
-{
- Script *script;
-
- for (script=idbase->first; script; script= script->id.next) {
- if (script->id.us>0 || wd->current) {
- writestruct(wd, ID_SCRIPT, "Script", 1, script);
- if (script->id.properties) IDP_WriteProperty(script->id.properties, wd);
- }
- }
-}
-
static void write_movieTracks(WriteData *wd, ListBase *tracks)
{
MovieTrackingTrack *track;
@@ -3762,7 +3750,6 @@ static int write_file_handle(
write_brushes (wd, &mainvar->brush);
write_palettes (wd, &mainvar->palettes);
write_paintcurves (wd, &mainvar->paintcurves);
- write_scripts (wd, &mainvar->script);
write_gpencils (wd, &mainvar->gpencil);
write_linestyles(wd, &mainvar->linestyle);
write_libraries(wd, mainvar->next);