Mercurial > hg > svgui
comparison layer/Layer.cpp @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | 11a150e65ee1 |
children | 232262e38051 |
comparison
equal
deleted
inserted
replaced
1469:11a150e65ee1 | 1470:696e569ff21b |
---|---|
109 | 109 |
110 PlayParameters * | 110 PlayParameters * |
111 Layer::getPlayParameters() | 111 Layer::getPlayParameters() |
112 { | 112 { |
113 // cerr << "Layer (" << this << ", " << objectName() << ")::getPlayParameters: model is "<< getModel() << endl; | 113 // cerr << "Layer (" << this << ", " << objectName() << ")::getPlayParameters: model is "<< getModel() << endl; |
114 auto model = ModelById::get(getModel()); | 114 return PlayParameterRepository::getInstance()->getPlayParameters |
115 if (model) { | 115 (getModel().untyped); |
116 return PlayParameterRepository::getInstance()->getPlayParameters(model); | |
117 } | |
118 return nullptr; | 116 return nullptr; |
119 } | 117 } |
120 | 118 |
121 void | 119 void |
122 Layer::setLayerDormant(const LayerGeometryProvider *v, bool dormant) | 120 Layer::setLayerDormant(const LayerGeometryProvider *v, bool dormant) |