diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerpartsource.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerpartsource.cpp b/linden/indra/newview/llviewerpartsource.cpp index 040d108..6c0596a 100644 --- a/linden/indra/newview/llviewerpartsource.cpp +++ b/linden/indra/newview/llviewerpartsource.cpp | |||
@@ -466,6 +466,25 @@ LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::unpackPSS(LLViewer | |||
466 | } | 466 | } |
467 | } | 467 | } |
468 | 468 | ||
469 | |||
470 | /* static */ | ||
471 | LLPointer<LLViewerPartSourceScript> LLViewerPartSourceScript::createPSS(LLViewerObject *source_objp, const LLPartSysData& particle_parameters) | ||
472 | { | ||
473 | LLMemType mt(LLMemType::MTYPE_PARTICLES); | ||
474 | |||
475 | LLPointer<LLViewerPartSourceScript> new_pssp = new LLViewerPartSourceScript(source_objp); | ||
476 | |||
477 | new_pssp->mPartSysData = particle_parameters; | ||
478 | |||
479 | if (new_pssp->mPartSysData.mTargetUUID.notNull()) | ||
480 | { | ||
481 | LLViewerObject *target_objp = gObjectList.findObject(new_pssp->mPartSysData.mTargetUUID); | ||
482 | new_pssp->setTargetObject(target_objp); | ||
483 | } | ||
484 | return new_pssp; | ||
485 | } | ||
486 | |||
487 | |||
469 | void LLViewerPartSourceScript::setImage(LLViewerImage *imagep) | 488 | void LLViewerPartSourceScript::setImage(LLViewerImage *imagep) |
470 | { | 489 | { |
471 | LLMemType mt(LLMemType::MTYPE_PARTICLES); | 490 | LLMemType mt(LLMemType::MTYPE_PARTICLES); |