Changeset 1212 for cpp/frams/genetics


Ignore:
Timestamp:
04/07/23 18:30:41 (21 months ago)
Author:
Maciej Komosinski
Message:

Properly attach muscles to joints and fix "Warning: Param.loadSingleLine: Unknown property 'n.n:j' (ignored)"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_conv.cpp

    r831 r1212  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2023  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    148148
    149149
    150 /// updated by Macko to follow new SDK standards (no more neuroitems)
     150/// updated by MacKo to follow new SDK standards (no more neuroitems)
    151151int f4_Model::buildModelRec(f4_Cell *C)
    152152{
     
    272272                        C->neuro_refno = partidx;
    273273                }
    274                 else // attached to Joint
     274                else // attached to Joint, assume there are only three possibilities of getPreferredLocation()
    275275                {
    276276                        jointno = C->dadlink->joint_refno;
    277                         sprintf(tmpLine, "n:j=%d,d=\"%s\"", jointno, nclass);
     277                        sprintf(tmpLine, "j=%d,d=\"%s\"", jointno, nclass);
    278278                        partidx = addFromString(NeuronType, tmpLine, &range);
    279279                        if (partidx < 0) return -32;
Note: See TracChangeset for help on using the changeset viewer.