View Issue Details

IDProjectCategoryView StatusLast Update
0006035DarkRadiantMap Editingpublic31.07.2022 08:55
Reportergreebo Assigned Togreebo  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version3.1.0 
Target Version3.1.0Fixed in Version3.1.0 
Summary0006035: Models are reset to origin after reloadDecls
DescriptionIn the attached maps there are two entities referring to the modelDef "some_modeldef_with_skin".

- Change the modelDef on disk (in a .def file), swapping the mesh
- Hit reloadDecls will reload the models but they are rendered at the wrong position now
Steps To Reproducemodel some_modeldef_with_skin
{
    mesh models/md5/chars/guards/proguard/tdm_ai_proguard_lowest.md5mesh
    // mesh models/md5/chars/builders/forger/builderforgermesh.md5mesh
    skin proguard/redbrown_coat
}

TagsNo tags attached.

Relationships

related to 0005504 resolvedgreebo Reload Defs is not sufficient for reloading modelDefs 

Activities

greebo

greebo

31.07.2022 08:29

administrator  

modeldef.map (298 bytes)   
Version 2
// entity 0
{
"classname" "func_static"
"name" "func_static_1"
"model" "some_modeldef_with_skin"
"origin" "144 64 0"
"rotation" "1 0 0 0 1 0 0 0 1"
}
// entity 1
{
"classname" "func_animate"
"name" "func_animate_1"
"origin" "48 144 32"
"model" "some_modeldef_with_skin"
}
modeldef.map (298 bytes)   

Related Changesets

DarkRadiant: master 9c712b60

2022-07-31 08:53:45

greebo

Details Diff
0006035: Add unit test covering the regression introduced in 0005504 Affected Issues
0005504, 0006035
mod - test/Models.cpp Diff File
mod - test/algorithm/Scene.h Diff File

DarkRadiant: master 308b6708

2022-07-31 08:54:50

greebo

Details Diff
0006035: Fix model transformation being reset to identity after reloadDecls Affected Issues
0006035
mod - radiantcore/entity/ModelKey.cpp Diff File

Issue History

Date Modified Username Field Change
31.07.2022 08:29 greebo New Issue
31.07.2022 08:29 greebo File Added: modeldef.map
31.07.2022 08:29 greebo Relationship added related to 0005504
31.07.2022 08:29 greebo Assigned To => greebo
31.07.2022 08:29 greebo Status new => assigned
31.07.2022 08:54 greebo Changeset attached => DarkRadiant master 9c712b60
31.07.2022 08:54 greebo Changeset attached => DarkRadiant master 308b6708
31.07.2022 08:55 greebo Status assigned => resolved
31.07.2022 08:55 greebo Resolution open => fixed
31.07.2022 08:55 greebo Fixed in Version => 3.1.0