mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 08:27:01 +00:00
Color properties now update in realtime while the user is choosing a color from the color dialog; also some misc bugfixes
This commit is contained in:
@@ -75,10 +75,13 @@ public:
|
||||
{
|
||||
CScriptObject *pSender = mpArea->InstanceByID(mSenderID);
|
||||
|
||||
for (u32 iLink = 0; iLink < pSender->NumLinks(eOutgoing); iLink++)
|
||||
if (pSender)
|
||||
{
|
||||
if (pSender->Link(eOutgoing, iLink) == this)
|
||||
return iLink;
|
||||
for (u32 iLink = 0; iLink < pSender->NumLinks(eOutgoing); iLink++)
|
||||
{
|
||||
if (pSender->Link(eOutgoing, iLink) == this)
|
||||
return iLink;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
@@ -88,10 +91,13 @@ public:
|
||||
{
|
||||
CScriptObject *pReceiver = mpArea->InstanceByID(mReceiverID);
|
||||
|
||||
for (u32 iLink = 0; iLink < pReceiver->NumLinks(eIncoming); iLink++)
|
||||
if (pReceiver)
|
||||
{
|
||||
if (pReceiver->Link(eIncoming, iLink) == this)
|
||||
return iLink;
|
||||
for (u32 iLink = 0; iLink < pReceiver->NumLinks(eIncoming); iLink++)
|
||||
{
|
||||
if (pReceiver->Link(eIncoming, iLink) == this)
|
||||
return iLink;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
@@ -193,14 +193,16 @@ void CScriptObject::BreakAllLinks()
|
||||
for (auto it = mInLinks.begin(); it != mInLinks.end(); it++)
|
||||
{
|
||||
CLink *pLink = *it;
|
||||
pLink->Sender()->RemoveLink(eOutgoing, pLink);
|
||||
CScriptObject *pSender = pLink->Sender();
|
||||
if (pSender) pSender->RemoveLink(eOutgoing, pLink);
|
||||
delete pLink;
|
||||
}
|
||||
|
||||
for (auto it = mOutLinks.begin(); it != mOutLinks.end(); it++)
|
||||
{
|
||||
CLink *pLink = *it;
|
||||
pLink->Receiver()->RemoveLink(eIncoming, pLink);
|
||||
CScriptObject *pReceiver = pLink->Receiver();
|
||||
if (pReceiver) pReceiver->RemoveLink(eIncoming, pLink);
|
||||
delete pLink;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user