mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added extension to Plugin Manager that supports scripts in a Plugin folder
This commit is contained in:
@@ -76,6 +76,13 @@ class Array
|
||||
def ^(other) # xor of two arrays
|
||||
return (self|other) - (self&other)
|
||||
end
|
||||
|
||||
def swap(val1, val2)
|
||||
index1 = self.index(val1)
|
||||
index2 = self.index(val2)
|
||||
self[index1] = val2
|
||||
self[index2] = val1
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user