overte/libraries/entities/src
Ryan Huffman d0cddd01d7 Fix entity scripts not loading in certain cases
This fixes a bug where an entity script would be loaded but immediately
unloaded. This happens when the script property of the entity is changed shortly
after it is added.

Flow of events:

  Entity added
  => Entity added event emitted
  Entity edited
  => Script changing event emitted
  <= Entity added event received
  Script loaded
  <= Script changing event received
  Script stopped
  Tries to load script again, but because the script hasn't changed
    since it was last loaded, it is not loaded again.

The change here is to modify the behavior when receiving a script
changing event. Instead of always unloading and then conditionally
loading the script, it will either do both (unload + load) or neither.
2017-02-13 14:59:31 -08:00
..
AddEntityOperator.cpp
AddEntityOperator.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
AnimationPropertyGroup.cpp cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
AnimationPropertyGroup.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
DeleteEntityOperator.cpp
DeleteEntityOperator.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
EntitiesLogging.cpp
EntitiesLogging.h
EntitiesScriptEngineProvider.h
EntityActionFactoryInterface.h
EntityActionInterface.cpp cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
EntityActionInterface.h action for arrow flight, etc 2016-08-28 19:08:13 -07:00
EntityEditPacketSender.cpp Merge pull request #9609 from sethalves/tablet-ui-fix-equipping 2017-02-06 16:56:11 -08:00
EntityEditPacketSender.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
EntityItem.cpp avoid bootstrapping self with something that has someone else as simulation owner 2017-02-06 14:16:47 -08:00
EntityItem.h Fix entity scripts not loading in certain cases 2017-02-13 14:59:31 -08:00
EntityItemID.cpp
EntityItemID.h
EntityItemProperties.cpp Merge branch 'master' of https://github.com/highfidelity/hifi into edit-entity-filter 2017-01-25 19:16:29 -08:00
EntityItemProperties.h Merge branch 'master' of https://github.com/highfidelity/hifi into edit-entity-filter 2017-01-25 19:16:29 -08:00
EntityItemPropertiesDefaults.h Add serverScripts entity property 2017-01-17 14:47:06 -08:00
EntityItemPropertiesMacros.h added EntityItemProperties.merge function. when sending edits for avatar-entities, don't call setProperties on the entity. Fix currentFrame bug in AnimationPropertyGroup::copyToScriptValue 2016-10-17 16:11:37 -07:00
EntityNodeData.h send entities that just stopped matching filter 2017-01-18 14:58:36 -08:00
EntityPropertyFlags.h Add serverScripts entity property 2017-01-17 14:47:06 -08:00
EntityScriptingInterface.cpp Merge pull request #9603 from huffman/feat/trace-thread-script 2017-02-09 13:00:05 -08:00
EntityScriptingInterface.h merge from upstream 2017-01-25 15:57:53 -08:00
EntityScriptServerLogClient.cpp CR 2017-02-09 13:04:43 -08:00
EntityScriptServerLogClient.h CR 2017-02-09 13:04:43 -08:00
EntitySimulation.cpp have code where physics guesses at server values also avoid doing simple simulation of children of avatars 2016-06-09 14:35:17 -07:00
EntitySimulation.h use smart pointers for entity simulations 2016-05-07 09:14:33 -07:00
EntityTree.cpp Pass filter type as an int, with constants to compare against. 2017-02-06 13:36:45 -08:00
EntityTree.h Pass filter type as an int, with constants to compare against. 2017-02-06 13:36:45 -08:00
EntityTreeElement.cpp remove useless additional includeThisEntity sets 2017-01-24 17:35:45 -08:00
EntityTreeElement.h leverage JSON filter changes to OctreeQuery in EntityServer 2017-01-18 14:58:36 -08:00
EntityTreeHeadlessViewer.cpp use smart pointers for entity simulations 2016-05-07 09:14:33 -07:00
EntityTreeHeadlessViewer.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
EntityTypes.cpp more verbose messaging about incorrect entity types 2016-06-13 17:48:58 -07:00
EntityTypes.h cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
KeyLightPropertyGroup.cpp cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
KeyLightPropertyGroup.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
LightEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
LightEntityItem.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
LineEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
LineEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
ModelEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
ModelEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
MovingEntitiesOperator.cpp
MovingEntitiesOperator.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
ParticleEffectEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
ParticleEffectEntityItem.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
PolyLineEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
PolyLineEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
PolyVoxEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
PolyVoxEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
PropertyGroup.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
RecurseOctreeToMapOperator.cpp kill offsets 2016-03-29 09:18:29 -07:00
RecurseOctreeToMapOperator.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
ShapeEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
ShapeEntityItem.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
SimpleEntitySimulation.cpp fix entity-server crash for out of bounds 2016-04-14 15:23:14 -07:00
SimpleEntitySimulation.h use smart pointers for entity simulations 2016-05-07 09:14:33 -07:00
SimulationFlags.h
SimulationOwner.cpp fix bug preventing sim ownership release 2016-05-05 10:52:53 -07:00
SimulationOwner.h magic number 2016-05-17 19:14:44 -07:00
SkyboxPropertyGroup.cpp cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
SkyboxPropertyGroup.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
StagePropertyGroup.cpp cleanup naked qDebug() calls 2016-12-19 22:24:25 -08:00
StagePropertyGroup.h use smart pointers to avoid leaking EntityTreeElementExtraEncodeData 2016-12-12 16:04:41 -08:00
TextEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
TextEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
UpdateEntityOperator.cpp fix some comments and debug pritns 2016-05-16 14:12:05 -07:00
UpdateEntityOperator.h add -Wsuggest-override to compile flags and deal with fallout 2016-08-18 09:51:41 -07:00
WebEntityItem.cpp Merge branch 'master' of https://github.com/highfidelity/hifi into ess-pr 2017-01-25 13:06:49 -08:00
WebEntityItem.h merge from upstream 2017-01-25 15:57:53 -08:00
ZoneEntityItem.cpp change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00
ZoneEntityItem.h change lastViewFrustumSent to lastQuerySent 2017-01-18 14:58:36 -08:00