Merge pull request #183 from nathan/run-while-dragging

Fixed shadow disappearing when a script runs while being dragged
This commit is contained in:
Nathan Dinsmore 2014-06-24 13:58:10 -04:00
commit 6cd8833215

View file

@ -299,13 +299,22 @@ public class Block extends Sprite {
}
public function showRunFeedback():void {
if (!filters || (filters.length == 0)) {
filters = runFeedbackFilters();
if (filters && filters.length > 0) {
for each (var f:* in filters) {
if (f is GlowFilter) return;
}
}
filters = runFeedbackFilters().concat(filters || []);
}
public function hideRunFeedback():void {
if (filters && (filters.length > 0)) filters = [];
if (filters && filters.length > 0) {
var newFilters:Array = [];
for each (var f:* in filters) {
if (!(f is GlowFilter)) newFilters.push(f);
}
filters = newFilters;
}
}
private function runFeedbackFilters():Array {