OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t#31533:add default t,z
[pettanr/pettanr.git]
/
app
/
models
/
ground_picture.rb
diff --git
a/app/models/ground_picture.rb
b/app/models/ground_picture.rb
index
d4ff1ba
..
67cc2c4
100644
(file)
--- a/
app/models/ground_picture.rb
+++ b/
app/models/ground_picture.rb
@@
-22,9
+22,13
@@
class GroundPicture < ActiveRecord::Base
end
def supply_default
- self.repeat = 0
self.x = 0
self.y = 0
+ self.repeat = 0
+ if self.panel
+ self.t = self.panel.new_t
+ self.z = self.panel.new_z
+ end
end
def overwrite